﻿using System;
using System.ComponentModel;

namespace Citi.EmailSender.WebUi.Models
{
    public class EmailFilterModel : EmailModel
    {
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        [DisplayName("Application")]
        public int ApplicationId { get; set; }
        [DisplayName("Sent On Behalf Of")]
        public int OnBehalfOfId { get; set; }
        public string Subject { get; set; }
        public SentStatus Status { get; set; }
        public ApprovalStatus Approval { get; set; }

        public enum SentStatus
        {
            Sent, Error, Scheduled
        }

        public enum ApprovalStatus
        {
            All,
            [Description("Only Approved")]
            OnlyApproved,
            [Description("Only Not Approved")]
            OnlyNotApproved,
            [Description("Only Pending Approval")]
            OnlyPendingApproval
        }
    }
}